
public class cishu {
	public static void main (String args[]){
		int n=0;
		String s="Wo Yi Ding Neng Tong Guo Java Kao Shi";
		for (int i=0;i<s.length();i++){
			if (s.charAt(i) == 'a'){
				n++;
				
			}
		}
		System.out.println(n);
	}
}
